import java.util.*;
public class Summary {

	private String name;
	private HashMap termTOdf=new HashMap();
	
	public Summary(String n)
	{
		name=n;
	}
	
	public Summary(String n, HashMap hm)
	{
		name=n;
		termTOdf=hm;
	}
	
	public String getName()
	{
		return name;
	}	
	
	public HashMap getTermTOdf()
	{
		return termTOdf;
	}
	
	public void addTermTOdf(String term, int df)
	{
		termTOdf.put(term, new Integer(df));
	}
	
	public int getDfbyTerm(String term)
	{
		return ((Integer)termTOdf.get(term)).intValue();
	}
	
	public Iterator TermsIteration()
	{
		return termTOdf.keySet().iterator();
	}
	
	public void setMap(HashMap hm)
	{
		termTOdf=hm;
	}
}
